package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 库存盘点单(es_stock_inventory)对象 es_stock_inventory
 *
 * @author ruoyi
 * @date 2025-03-07
 */
public class EsStockInventory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 库存盘点单编号 */
    @Excel(name = "库存盘点单编号")
    private String sn;

    /** 部门ID */
    @Excel(name = "部门ID")
    private Long deptId;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String deptName;

    /** 仓库ID */
    @Excel(name = "仓库ID")
    private Long warehouseId;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    private String warehouseName;

    /** 盘点人ID */
    @Excel(name = "盘点人ID")
    private Long inventoryPersonId;

    /** 盘点人 */
    @Excel(name = "盘点人")
    private String inventoryPerson;

    /** 制单人ID */
    @Excel(name = "制单人ID")
    private Long creatorId;

    /** 制单人 */
    @Excel(name = "制单人")
    private String creator;

    /** 盘点时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "盘点时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inventoryTime;

    /** 盘点说明 */
    @Excel(name = "盘点说明")
    private String inventoryDesc;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 审核驳回原因 */
    @Excel(name = "审核驳回原因")
    private String rejectReason;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditTime;

    /** 审核人ID */
    @Excel(name = "审核人ID")
    private Long auditPersonId;

    /** 审核人名称 */
    @Excel(name = "审核人名称")
    private String auditPersonName;

    public BigDecimal getProfitLossAmount() {
        return profitLossAmount;
    }

    public void setProfitLossAmount(BigDecimal profitLossAmount) {
        this.profitLossAmount = profitLossAmount;
    }

    public Integer getProfitCount() {
        return profitCount;
    }

    public void setProfitCount(Integer profitCount) {
        this.profitCount = profitCount;
    }

    public Integer getLossCount() {
        return lossCount;
    }

    public void setLossCount(Integer lossCount) {
        this.lossCount = lossCount;
    }

    /** 盘亏盘盈总金额 */
    private BigDecimal profitLossAmount;

    /** 盘盈商品种类数 */
    private Integer profitCount;

    /** 盘亏商品种类数 */
    private Integer lossCount;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSn(String sn)
    {
        this.sn = sn;
    }

    public String getSn()
    {
        return sn;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setDeptName(String deptName)
    {
        this.deptName = deptName;
    }

    public String getDeptName()
    {
        return deptName;
    }
    public void setWarehouseId(Long warehouseId)
    {
        this.warehouseId = warehouseId;
    }

    public Long getWarehouseId()
    {
        return warehouseId;
    }
    public void setWarehouseName(String warehouseName)
    {
        this.warehouseName = warehouseName;
    }

    public String getWarehouseName()
    {
        return warehouseName;
    }
    public void setInventoryPersonId(Long inventoryPersonId)
    {
        this.inventoryPersonId = inventoryPersonId;
    }

    public Long getInventoryPersonId()
    {
        return inventoryPersonId;
    }
    public void setInventoryPerson(String inventoryPerson)
    {
        this.inventoryPerson = inventoryPerson;
    }

    public String getInventoryPerson()
    {
        return inventoryPerson;
    }
    public void setCreatorId(Long creatorId)
    {
        this.creatorId = creatorId;
    }

    public Long getCreatorId()
    {
        return creatorId;
    }
    public void setCreator(String creator)
    {
        this.creator = creator;
    }

    public String getCreator()
    {
        return creator;
    }
    public void setInventoryTime(Date inventoryTime)
    {
        this.inventoryTime = inventoryTime;
    }

    public Date getInventoryTime()
    {
        return inventoryTime;
    }
    public void setInventoryDesc(String inventoryDesc)
    {
        this.inventoryDesc = inventoryDesc;
    }

    public String getInventoryDesc()
    {
        return inventoryDesc;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setRejectReason(String rejectReason)
    {
        this.rejectReason = rejectReason;
    }

    public String getRejectReason()
    {
        return rejectReason;
    }
    public void setAuditTime(Date auditTime)
    {
        this.auditTime = auditTime;
    }

    public Date getAuditTime()
    {
        return auditTime;
    }
    public void setAuditPersonId(Long auditPersonId)
    {
        this.auditPersonId = auditPersonId;
    }

    public Long getAuditPersonId()
    {
        return auditPersonId;
    }
    public void setAuditPersonName(String auditPersonName)
    {
        this.auditPersonName = auditPersonName;
    }

    public String getAuditPersonName()
    {
        return auditPersonName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sn", getSn())
            .append("deptId", getDeptId())
            .append("deptName", getDeptName())
            .append("warehouseId", getWarehouseId())
            .append("warehouseName", getWarehouseName())
            .append("inventoryPersonId", getInventoryPersonId())
            .append("inventoryPerson", getInventoryPerson())
            .append("creatorId", getCreatorId())
            .append("creator", getCreator())
            .append("inventoryTime", getInventoryTime())
            .append("inventoryDesc", getInventoryDesc())
            .append("createTime", getCreateTime())
            .append("status", getStatus())
            .append("rejectReason", getRejectReason())
            .append("auditTime", getAuditTime())
            .append("auditPersonId", getAuditPersonId())
            .append("auditPersonName", getAuditPersonName())
            .toString();
    }

    private List<EsStockInventoryProduct> productList;

    public List<EsStockInventoryProduct> getProductList() {
        return productList;
    }

    public void setProductList(List<EsStockInventoryProduct> productList) {
        this.productList = productList;
    }
}
